package com.tian.controller;

import com.tian.dto.LoanApplyDto;
import com.tian.service.LoanApplyDubboService;
import com.tian.utils.CommonResult;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author tianwc  公众号：java后端技术全栈、面试专栏
 * @version 1.0.0
 * @date 2023年08月28日 10:57
 * 在线刷题 1200+题和1000+篇干货文章：<a href="https://woaijava.cc/">博客地址</a>
 */
@RestController
@RequestMapping("/test")
public class TestController {

    @Reference(version = "1.0.0")
    private LoanApplyDubboService loanApplyService;

    @GetMapping
    public CommonResult<LoanApplyDto> queryLoanApplyById() {
        return loanApplyService.queryLoanApplyById(1L);
    }
}
